
(function() {
	Dialog = function(title, divBody) {
		this.title = title;

		divDialog = document.createElement('div');
		divDialog.className = 'dialog';
		divHead = document.createElement('div');
		divHead.className = 'dialog_head';
		if (!divBody) {
			divBody = document.createElement('div');
		}
		divHead.className = 'dialog_body';

		divDialog.appendChild(divHead);
		divDialog.appendChild(divBody);
	}

	G.DomElement.prototype.CreateDialog = function(title) {
		return new Dialog(title, divBody);
	}
})();
